package cloud.simple.rabbitmq;/**
 * Created by joyu on 2017/8/10.
 */

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author joyu
 * @ClassName Receiver
 * @Description 消息消费者
 * @create 2017年08月10日 13:56
 */
@Component
@RabbitListener(queues = "hello")
public class Receiver {

    @RabbitHandler
    public void process(String hello) {
        System.out.println("Receiver:" + hello);
    }
}
